Hi everyone, i am trying to use Stream stmReport = write("C:\\temp\\MyReport.doc") to write some strings on a word file using stream write however even tough i try to use this function as stmReport << memo_x << memo_y << strcompare ,where memo_x, memo_y, and strcompare are the strings to be written, Stream truns no result except creation of the MyReport.doc.
What's for sure, memo_x, memo_y and strcompare are well defined and can be displayed via text DBE element.
My ultimate goal is to write down all differences between two baseline on a word file. As it is complicated to integrate my code in the Word export code, i opted to use Stream write. Also perhaps it might be helpful to underline that baseline comparison is performed without a problem.
Thanks alot in advance to those who pay attention. Kind regards
SystemAdmin - Tue Jun 02 05:52:31 EDT 2009 |
|
Re: why stream write does not function? Peter_Albert - Tue Jun 02 06:50:24 EDT 2009
For the empty file, did you close your stream after finishing the export using the 'close(Stream s)' perm?
Then, you should be aware that with a Stream you always create a plain ASCII file, not a Word file, so don't expect to be able to insert any fancy formatting etc. via Streams.
Regards,
Peter
|
|
Re: why stream write does not function? IBM_Gust - Tue Jun 02 07:18:00 EDT 2009
Can DXL be trusted when you write an empty stream?
|
|
Re: why stream write does not function? SystemAdmin - Tue Jun 02 07:32:08 EDT 2009 Peter_Albert - Tue Jun 02 06:50:24 EDT 2009
For the empty file, did you close your stream after finishing the export using the 'close(Stream s)' perm?
Then, you should be aware that with a Stream you always create a plain ASCII file, not a Word file, so don't expect to be able to insert any fancy formatting etc. via Streams.
Regards,
Peter
Thanks Peter, when i added the perm you ve told me, it worked out perfectly. At the first hand, i am not expected to have something fancy but rather something which works since what is crucial i believe to have something which works then i can always ameliorate it. Thanks one more time.
Kind regards
|
|
Re: why stream write does not function? SystemAdmin - Tue Jun 02 07:33:41 EDT 2009 IBM_Gust - Tue Jun 02 07:18:00 EDT 2009
Can DXL be trusted when you write an empty stream?
Hi rslerl, i did not quiet get in which terms you think that whether empty stream is trusted or not :s
|
|